<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>

<ul class="functions2">
    <security:authorize ifAnyGranted="ROLE_PORTAL_USER,ROLE_AUTHOR">
        <li class="fr">
            <a href="#" onclick="createLink()" class="retire">
                <img src="<%= request.getContextPath()%>/images/btn/btn_create_new.gif" width="127" height="21"
                     alt="text" class="btn"/>
            </a>
        </li>
    </security:authorize>
    <li class="view">
        <a href="#" onclick="clickAction('view')">
            <img src="<%=request.getContextPath()%>/images/btn/functions2/btn_view.gif"
                 width="68" height="23" alt="view" class="btn"/>
        </a>
    </li>

    <security:authorize ifAnyGranted="ROLE_PORTAL_USER, ROLE_AUTHOR">
        <li>
            <input type="image" id="editBtn" src="<%=request.getContextPath()%>/images/btn/functions2/btn_edit.gif"
                   alt="view" class="btn"/>
        </li>

        <li>
            <input type="image" id="nvBtn" src="<%=request.getContextPath()%>/images/btn/functions2/btn_new_version.gif"
                   alt="view" class="btn"/>
        </li>

        <li>
            <input type="image" id="deleteBtn" src="<%=request.getContextPath()%>/images/btn/functions2/btn_delete.gif"
                   alt="remove" class="btn" onclick="remove();"/>
        </li>

        <li>
            <input type="image" id="copyBtn" src="<%=request.getContextPath()%>/images/btn/functions2/btn_copy.gif"
                   alt="view" class="btn"/>
        </li>
    </security:authorize>

    <security:authorize ifAnyGranted="ROLE_PORTAL_USER, ROLE_REVIEWER">
        <li>
            <input type="image" id="retireBtn" alt="view" class="btn"
                   src="<%=request.getContextPath()%>/images/btn/functions2/btn_retire.gif"/>
        </li>
    </security:authorize>

    <security:authorize ifAnyGranted="ROLE_PORTAL_USER, ROLE_AUTHOR">
        <li>
            <input type="image" id="previewBtn" alt="view" class="btn"
                   src="<%=request.getContextPath()%>/images/btn/functions2/btn_preview.gif"/>
        </li>
    </security:authorize>
</ul>